
package com.shop.cloud.mall.api.controller;

import com.shop.cloud.common.core.constant.SecurityConstants;
import com.shop.cloud.common.core.util.R;
import com.shop.cloud.live.common.feign.FeignLiveConfigService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 直播配置
 *
 * @author
 * @date 2025-01-09 10:03:39
 */
@Slf4j
@RestController
@AllArgsConstructor
@RequestMapping("/liveconfig")
@Tag(description = "liveconfig", name = "直播配置")
public class LiveConfigController {

    private final FeignLiveConfigService feignLiveConfigService;

    /**
     * 直播配置查询
     * @return R
     */
    @Operation(summary = "直播配置查询")
    @GetMapping
    public R get() {
        return feignLiveConfigService.get(SecurityConstants.FROM_IN);
    }
}
